!!!###!!!title=161-How to customize the axis label display spacing——VisActor/VChart FAQ documents!!!###!!!

How to customize the axis label display spacing?

Question Description

A line chart like (https://visactor.io/vchart/demo/line-chart/basic-line), How to realize the display spacing of custom axis labels?

Solution

The solution varies depending on the chart library being used. Based on the provided demo, you simply need to set the corresponding field to false in order to disable stacking.

  • MinGap can be used to customize the minimum spacing between labels (unit: pixels). Only takes effect when axis sampling starts (sampling: true). This configuration affects the results of axis sampling.

Code Example

Results

Quote